//
//  HQYinSiXieYiViewController.m
//  MobileiOS
//
//  Created by 郝庆松 on 2018/7/8.
//  Copyright © 2018年 PCITC. All rights reserved.
//

#import "HQYinSiXieYiViewController.h"

@interface HQYinSiXieYiViewController ()

@end

@implementation HQYinSiXieYiViewController

- (void)viewDidLoad {
    [super viewDidLoad];
   
    [_webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://v2.lbrs.guobao21.com/admin/common/regrule"]]];
    
    _hud.hidden = YES;
    [_hud stopAnimating];
}

- (IBAction)closeItem:(id)sender {
        [self dismissViewControllerAnimated:YES completion:nil];
}

-(void)webViewDidStartLoad:(UIWebView *)webView{
    _hud.hidden = NO;
    [_hud startAnimating];
}

-(void)webViewDidFinishLoad:(UIWebView *)webView{
    _hud.hidden = YES;
    [_hud stopAnimating];
}

-(void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error{
    _hud.hidden = YES;
    [_hud stopAnimating];
}

@end
